package com.jinboe.comm.test;
import java.lang.reflect.Field;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.util.Date;

import com.jinboe.document.entity.DateEntity;
public class FuLei {
	public static void main(String[] args) {
		testReflect(new DateEntity());
	}
	public static void testReflect(Object model){
        Field[] field = model.getClass().getDeclaredFields();        //获取实体类的所有属性，返回Field数组  
            for(int j=0 ; j<field.length ; j++){     //遍历所有属性
                String name = field[j].getName();    //获取属性的名字
                 System.out.println("attribute name:"+name);                
                
                                
            }
    }
}
